#include "EPubMediaJPEGImp.h"

EPubPointer<IEPubBuffer> EPubMediaJPEGImp::Serialize(EPubPointer<IEPubEncryption> encryption) const
{
	return NULL;
}

EPUB_Result EPubMediaJPEGImp::Deserialize(const EPubPointer<IEPubBuffer> buffer, EPubPointer<IEPubDecryption> decryption)
{
	EPUB_Result ret = EPUB_SUCCESS;
	if(!decryption) {
		m_Buffer->SetBuffer(**buffer);
	} else {
		m_Buffer->SetBuffer(**decryption->Decrypt(buffer));
	}
	return ret;
}